package com.mini.gateway.core.modules.route.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mini.gateway.core.modules.route.entity.RouteParam;
import com.mini.gateway.core.modules.route.enums.ParamType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * RouteParamMapper
 *
 */
public interface RouteParamMapper extends BaseMapper<RouteParam> {

    void save(RouteParam param);

    List<RouteParam> selectListByRouteId(@Param("routeId") Integer routeId,
                                         @Param("paramType") ParamType paramType);

}
